public class Animal {
    public String name;
    public int age;
    public String color;

    public  void eat(){
        System.out.println(this.name+"正在吃东西");
    }
    public void sleep(){
        System.out.println(this.name+"正在睡觉");
    }
}
class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();

    }

}
